let listLoad = require('../../common/mixinList');
Page({
    behaviors: [listLoad],
    data: {
        reqUrl: '/api/article/index?cate_id=4',
    },
    onLoad: function(options) {
        this.getList(true)
    },
    toDetail({ mark }) {
        const { index } = mark
        if (index != undefined) {
            wx.navigateTo({
                url: '/pages/article/index?article_id=' + this.data.list[index].article_id
            })
        }
    }
})